/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ml.training;

import java.util.List;
import java.util.Map;

/**
 *
 * @author 3521
 */
public class  Node {
    public static final int LEAF=0;
    
    public int nodeId;
    public Map branch;
    public double majorityClass;
    private boolean checkOptimal;
    public Node(int id, Map branch, double majority){
        this.nodeId=id;
        this.branch=branch;
        this.majorityClass=majority;
        checkOptimal=false;
    }
    public void setCheckOptimal(boolean b){
        checkOptimal=b;
    }
    public boolean getCheckOptimal(){
        return checkOptimal;
    }
    public Node(int id, Map branch){
        this.nodeId=id;
        this.branch=branch;
    }
}
